
import { observable,action } from "mobx";
import axios from '../../utils/http'
import * as api from '../../utils/api'
import { message } from "antd";

 class MiaoSha {
    @observable
    tabData = []


    
    

    @action
    selTabData(){//查询秒杀表格
        axios({
            url:api.GET_ALL_TABDATA,
            method:'get'
        }).then(data=>{
            data.data.code === 200 ? this.tabData = data.data.data : message.warning('系统开小差')
            this.tabData = data.data.data
            console.log(data)
        })
    }
    

 }

 export default MiaoSha